package com.fund.feign.clients.exphandler;

import com.fund.feign.bean.TUser;
import com.fund.feign.clients.TUserClient;
import com.fund.utils.AppResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author Tght
 */
@Slf4j
@Component
public class TUserClientExceptionHandler implements TUserClient {

    @Override
    public AppResponse<TUser> selectUser(String id) {

        AppResponse<TUser> resp = AppResponse.fail(null);
        resp.setMsg("远程调用服务【根据id获取用户信息】失败");
        log.info("远程调用服务【根据id获取用户信息】失败");
        return resp;
    }
}
